package com.pine.dbant.core.service;

import com.pine.dbant.core.entity.Relation;
import com.pine.dbant.core.model.RelationType;

public interface RelationService {

    void deleteByResId(Long resId, RelationType type);

    void deleteByTargetId(Long targetId, RelationType type);

    void delete(Long resId,Long targetId, RelationType type);

    Relation getByTargetId(Long targetId, RelationType type);

    void save(Relation relation);
}
